package com.xiaoxx.model.entity.sys;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xiaoxx.common.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * base--sys--消息通知
 * </p>
 *
 * @author HX
 * @since 2023-08-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_sys_msg")
@ApiModel(value = "SysMsg对象", description = "base--sys--消息通知")
public class SysMsg extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "消息接收人")
    @TableField("user_id")
    private String userId;

    @ApiModelProperty(value = "标题")
    @TableField("titile")
    private String titile;

    @ApiModelProperty(value = "内容( 根据消息类型区分数据-str || json)")
    @TableField("content")
    private String content;

    @ApiModelProperty(value = "通知终端: 1-用户端信息 2-管理端消息")
    @TableField("user_type")
    private Integer userType;

    @ApiModelProperty(value = "消息类型:  1-系统通知  2-订单业务通知 ")
    @TableField("msg_type")
    private Integer msgType;

    @ApiModelProperty(value = "是否已读(0-未读 1-已读)")
    @TableField("is_read")
    private Integer isRead;




}
